optimization
java string optimizations - load-in-place algorithm
I need to optimize the actual loading/parsing of a csv file (strings). The best way I know is the load-in-place algorithms and I successfully used it using JNI and a C++ dll that loads the data direct[详细]
2023-04-08 20:37 分类:问答SQLite: Optimize table scans
In my table I have some columns that have no index on them, searching for a value in those columns can take very long because SQLite does a full table scan.[详细]
2023-04-08 20:10 分类:问答Is there a way to get the size of a file in .NET using a static method?
I know the normal way of getting the size of a file would be to use a FileInfo instance: using System.IO;[详细]
2023-04-08 19:52 分类:问答Best way to initialize a HashMap
I usually do e.g. HashMap<String,String> dictionary = new HashMap<String,String>(); I started to think about it, and as far as I know a HashMap is implemented under the hood via a hash[详细]
2023-04-08 19:09 分类:问答How can I speed-up the table reconstruction in MySQL when altering the schema?
I have a relatively big MySQL InnoDB table (compressed), and I sometimes need to alter its schema (increasing column size or adding a field).[详细]
2023-04-08 15:51 分类:问答Loading 10k+ rows in iphone SQLite (FMDB)
I am creating a dictionary app and I am trying to load the terms into an iphone dictionary for use. The terms are defined from this table (SQLite):[详细]
2023-04-08 15:03 分类:问答Disabling optimizations in an executable and maintaining them in a static library
I\'ve come across an odd situation and my (supposed) knowledge of code linkage is failing me... I have come across a bug that only occurs in a 64-bit build with optimizations turned on (/O2, /O3, or[详细]
2023-04-08 14:23 分类:问答query avoding subselect
I have this query and it\'s very slow. Can i write this query in other way by avoiding subselects for example?[详细]
2023-04-08 11:43 分类:问答How to improve Spring MVC performance?
Are there best practises how to improve the performance of spring webapps? I use ehcache for static content, try to load JavaScript at the end of my app but the app doesn\'t run smooth yet. For a sim[详细]
2023-04-08 10:58 分类:问答Why isn't g++ tail call optimizing while gcc is?
I wanted to check whether g++ supports tail calling so I wrote this simple program to check it: http://ideone.com/hnXHv[详细]
2023-04-08 09:45 分类:问答