performance
Performance optimization strategies of last resort [closed]
Performance optimization strategies of last resort [closed]
Why JSF calls getters multiple times
This is caused by the nature of deferred expressions #{} (note that “legacy” standard expressions ${} behave exactly the same when Facelets is used instead of JSP). The deferred expression is not immediately evaluated, but created as a ValueExpression object and the getter method behind the expression is executed everytime when the code calls ValueExpression#getValue(). … Read more
High-performance merging of ordered sets
This is not going to be the fastest data structure & algorithm for your particular purpose I guess, but it may be fast enough. Test it yourself. Note that a std::forward_list or even a std::vector might be faster depending on the actual scenario (-> constant factors in big-O-notation). tmyklebu mentioned another approach in the comments: … Read more
database access VS lan access [closed]
Dependent on how you have setup access to your database, they will probably both use TCP/IP to access either. So, the performance will be roughly the same. If you have a file with the data in, you have to open the file and then read the contents. Comparing that to a database connection, you have … Read more