cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 - Looking for ways to optimize performance

Former Member
0 Kudos

Hello sapui5 experts,

currently, our customer uses three views (login, selection, table) for their application. The application contains a json model.

The data is fetched via proper rest service which delivers data in json format. During selection of some criteria, rest calls are done. Finally, the selected

data is rendered in sap.ui.table control.


Not being satisfied with the performance of the application, I´d like to know some ways to optimize the performance of the application.


I´m looking forward to your recommendations and useful information.


Many thanks in advance!


Best regards,

Rufat Gadirov


Accepted Solutions (1)

Accepted Solutions (1)

jmoors
Active Contributor
0 Kudos

Here are a few ideas:

  • Use preload to reduce number of files/requests
  • Load files asynchronously

Regards,

Jason

Former Member
0 Kudos

Thanks, Jason! Very useful ideas. I´ve found out that there is also an optimization tool which is called RequireJS Optimizer. I am gonna evaluate and choose between the listed technologies.

http://requirejs.org/docs/optimization.html#turbo

But do these technologies also influence the speed of scrolling, navigating and so on?

Because the scrolling of a data table which is bound to a rest service takes its time.

Any ideas here?

Best regards,

Rufat

jmoors
Active Contributor
0 Kudos

You might also want to have a look at grunt-openui5, which provides the ability to create a single preload file and ability to compress minify the file.

https://github.com/SAP/grunt-openui5

I would suggest you use the browser developer tools to identify the bottleneck, navigation between views could be increased by preloading the files. If you are using json model I would assume the data is loaded once and then used on the client side, so you might need to investigate if it's the loading or painting that takes the time.

Regards,

Jason

Former Member
0 Kudos

Hi,

we solved the scroll performance issue by removing stylesheets and setting the property visibleRowCountMode of the SAPUI5 table to auto instead of using the property visibleRowCount.

Your helpful information is generally correct when developing SAPUI5 applications which are getting bigger and need to be optimized.

Best regards,

Rufat Gadirov

MariusStoica
Active Participant
0 Kudos

Remember to set your question to "Answered"

Answers (0)