Welcome to the Install and Configuration feedback portal. We’re happy you’re here! If you have feedback on how to improve the Install and Configuration, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
our code base does register the license to syncfusion not only one "on a startup" of the application (which is quite difficult in our application) but every time when a word file is generated to pdf by using DocIORenderer (does not happen very frequently).
this works fine until we hit some thousand pdf generations.
at this point registering and checking the license for the X thousand time it generates very high cpu usage and takes a high amount of time (multiple seconds).
i understand that it is not optimal to register and recheck the license multiple times but every time should only take the same amount of time like the first time and not sum up with every single usage.
this is the code:
while (true)
{
var sw = Stopwatch.StartNew();
SyncfusionLicenseProvider.RegisterLicense("XXX");
SyncfusionLicenseProvider.ValidateLicense(Platform.FileFormats, out var _);
Console.WriteLine($"done in {sw.ElapsedMilliseconds}");
}
please add a valid license to make this example working.
you will see that the time elapsed will increase (!) with every call.
this was tested with .net 6 and syncfusion 20.3.0.61
the license added was for "all" products.