SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Performance of Code Converter

Last post 12-19-2008 7:31 AM by Luedi. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 12-18-2008 9:17 AM

    • Luedi
    • Not Ranked
    • Joined on 12-18-2008
    • Germany
    • Posts 6

    Performance of Code Converter

    Hello,

    i'm working in a project where we have to migrate a VB 6.0 application to VB.NET. For some reasons we want to translate the source to C#. I tried the code converter of  #develop but didn't come to a result because the bad performance of the converter. The VB project consists of 90 forms, 138 class modules and 29 modules with overall about 250.000 lines of code. The translation of a single form lasts from 10 minutes to around an hour depending on the complexity. I debugged #develop and found the reason in the GetAst() method of NRefactory. I'm willing to assist you in improving the performance. To better understand the code it would be great if i could read some architectural and technical documentation. Does such documentation exists?

     Regards

    Klaus

  • 12-18-2008 10:01 AM In reply to

    Re: Performance of Code Converter

    Just to make sure we are on the same page: you are converting the migrated VB.NET code to C#.

    Chris

  • 12-18-2008 10:21 AM In reply to

    • Luedi
    • Not Ranked
    • Joined on 12-18-2008
    • Germany
    • Posts 6

    Re: Performance of Code Converter

     Yes.

  • 12-18-2008 10:31 AM In reply to

    Re: Performance of Code Converter

    Which version of SharpDevelop are you using? Does this also happen if you paste it into the online code converter?

    Chris

  • 12-18-2008 12:27 PM In reply to

    • Luedi
    • Not Ranked
    • Joined on 12-18-2008
    • Germany
    • Posts 6

    Re: Performance of Code Converter

    i'm using #develop 3.0 Beta 3. The performance of the online converter is quite good. I tested it with the main form of the application (around 6.500 lines of code). To do this i merged the .designer part into the main class. With the project converter of #develop it took around half an hour to convert the code, the online converter did the job in around 20 to 30 seconds.

    Can it be that debugging code slows down the conversion process?? I noticed heavy logging activity. Extremely oft i get warnings from the TryEnter-Method of ProxyReturnType.

    Klaus

  • 12-19-2008 7:31 AM In reply to

    • Luedi
    • Not Ranked
    • Joined on 12-18-2008
    • Germany
    • Posts 6

    Re: Performance of Code Converter

     i've split the project into class modules, modules and forms and tried to convert them separately. The class modules and modules were converted in an acceptable time (around an hour for 168 files). The average time for converting forms is around one hour depening on the code size.

     

    Klaus

Page 1 of 1 (6 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.