Exact version: SmartClient Version: v12.0p_2020-01-16/PowerEdition Deployment (built 2020-01-16)
We recently updated to SmartGWT 12.0 and our team found that we have to wait very long for our app to start up.
I started investigating and found that loading our datasources took longer than before.
Our situation:
datasources to load: 240-260
client-side when we load in we perform this (pseudocode)
this performs a request to DataSourceLoader, I decided to extend it in order to track performance
on 11.1 this takes usually around 25-30 seconds but on 12.0 this can take 70-90 seconds and some in our team have even seen it take longer than 2 or 3 minutes (not sure how to reproduce that).
This isn't a disaster but it's mildly annoying.
Kind Regards,
Jeno
We recently updated to SmartGWT 12.0 and our team found that we have to wait very long for our app to start up.
I started investigating and found that loading our datasources took longer than before.
Our situation:
datasources to load: 240-260
client-side when we load in we perform this (pseudocode)
Code:
getIdsToLoad(datasourceIds -> { if (!idsAreInCache(datasourceIds)) { DataSource.load(ids, putInCacheFunction, false); } })
Code:
public class CustomDataSourceLoader extends DataSourceLoader { @Override public void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { StopWatch stopWatch = new StopWatch(); stopWatch.start(); super.processRequest(request, response); stopWatch.stop(); System.err.println("Took " + stopWatch.getTotalTimeMillis() + " ms"); } }
This isn't a disaster but it's mildly annoying.
Kind Regards,
Jeno
Comment