xzycn / language-detection

Automatically exported from code.google.com/p/language-detection
0 stars 0 forks source link

Reducing heap use and object creation #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I noticed some unnecessary object creation in the Detector and NGram classes, 
and made some changes at this branch: 
http://code.google.com/r/armintor-language-detection/source/list?name=tuning

My tests show improvements in speed, memory use, and a fairly drastic decrease 
in objects created.

Original issue reported on code.google.com by armin...@gmail.com on 17 Sep 2012 at 7:56