Open Closed

Could you give me some suggestions to reduce the first launch time? #5881


User avatar
0
Shanzhi_Chen created

I used ABP commercial 7.1.1 with Visual Studio for Mac 2022 on Mac m1 chip.

I should wait around 15 to 20 seconds for Abp to initialize every time.

Even though I change only a piece of code, I need to relaunch Abp, which takes another 15 to 20 seconds.

I need to waste a lot of time on these boiling things.

Does it support hot-reload on Mac m1 chip or could I disable some features to accelerate the launch progress, or could you give me some suggestions how to improve it?


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share the logs.txt of the first startup? liming.ma@volosoft.com

    I don't have this problem on my MBP(m1).

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The application startup is not too slow from the logs.

    
    2023-09-28 20:27:12.364 -06:00 [INF] Starting MBS.ModernCloud.HttpApi.Host.
    //...
    2023-09-28 20:27:17.927 -06:00 [INF] Now listening on: http://10.0.0.213:5001
    

    but you can try to disable the background job

    https://docs.abp.io/en/abp/latest/Background-Jobs#disable-job-execution

    and try to remove the DynamicLocalizationResourceContributor from AbpLocalizationOptions

    Configure<AbpLocalizationOptions>(options =>
    {
        options.GlobalContributors.Add<DynamicLocalizationResourceContributor>();
    });
    
Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07