- 03 5月, 2017 6 次提交
-
-
由 zdenop 提交于
genericvector: Fix minimum size
-
由 Stefan Weil 提交于
Commit 907de599 tried to improve GenericVector, but missed a case where vectors with less than kDefaultVectorSize were allocated. This resulted in additional alloc / free operations. Commit a28b2a03 (before memory optimization) oem 0: total heap usage: 739,238 allocs, 739,237 frees, 161,699,214 bytes allocated oem 1: total heap usage: 690,182 allocs, 690,175 frees, 144,470,400 bytes allocated oem 2: total heap usage: 728,213 allocs, 728,206 frees, 182,885,824 bytes allocated Commit fd3f8f9b without genericvector change oem 0: total heap usage: 738,980 allocs, 738,979 frees, 161,697,150 bytes allocated oem 1: total heap usage: 690,182 allocs, 690,175 frees, 144,470,400 bytes allocated oem 2: total heap usage: 728,213 allocs, 728,206 frees, 182,885,824 bytes allocated => Improvements for oem 0, no change for oem 1 and oem 2. Commit fd3f8f9b oem 0: total heap usage: 772,648 allocs, 772,647 frees, 160,083,901 bytes allocated oem 1: total heap usage: 748,591 allocs, 748,584 frees, 143,581,672 bytes allocated oem 2: total heap usage: 764,796 allocs, 764,789 frees, 181,212,197 bytes allocated => Less bytes allocated, but more allocs / frees = bad for performance. Commit fd3f8f9b with this patch oem 0: total heap usage: 677,537 allocs, 677,536 frees, 160,444,634 bytes allocated oem 1: total heap usage: 653,812 allocs, 653,805 frees, 143,423,008 bytes allocated oem 2: total heap usage: 670,029 allocs, 670,022 frees, 181,517,760 bytes allocated => Improvements for all three cases. Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 zdenop 提交于
Replace Tesseract data types by POSIX data types
-
由 Stefan Weil 提交于
Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 Stefan Weil 提交于
Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 Stefan Weil 提交于
Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
- 02 5月, 2017 12 次提交
-
-
由 zdenop 提交于
Remove unused local variables
-
由 Stefan Weil 提交于
This fixes some compiler warnings. Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 zdenop 提交于
doc: Fix use of MAINTAINER_MODE
-
由 zdenop 提交于
Remove freelist,c and freelist.h
-
由 Stefan Weil 提交于
It must also include man_MANS – otherwise make tries to build the man pages also in non maintainer mode without having a rule for that. This fixes commit 2794410c. Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 Stefan Weil 提交于
Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 Stefan Weil 提交于
Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 Stefan Weil 提交于
free also accepts a nullptr argument, so the code can be simplified. Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 Stefan Weil 提交于
free also accepts a nullptr argument, so the code can be simplified. Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 Stefan Weil 提交于
The case (destructor == NULL) never occurs in the current code. Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 Stefan Weil 提交于
Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 zdenop 提交于
Replace memalloc / memfree by C++ new / delete
-
- 01 5月, 2017 11 次提交
-
-
由 Stefan Weil 提交于
Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 zdenop 提交于
Remove unused code
-
由 Stefan Weil 提交于
Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 Stefan Weil 提交于
Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 Stefan Weil 提交于
Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 zdenop 提交于
RFC – doc: Remove generated files and add rules to build manpages
-
由 zdenop 提交于
Avoid unnecessary new / delete code
-
由 Stefan Weil 提交于
The class variable mutex_send_ does not require an indirection by using a pointer. Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 Stefan Weil 提交于
Both class variables BaselineCutoffs and CharNormCutoffs were pointers to fixed size arrays which were allocated in the constructor and deallocated in the destructor. These two extra allocations and two extra deallocations can be avoided. Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 Stefan Weil 提交于
It's also not necessary to nullify class variables in the destructor. Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 Stefan Weil 提交于
Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
- 30 4月, 2017 6 次提交
-
-
由 zdenop 提交于
Avoid unnecessary memory allocations
-
由 zdenop 提交于
Use Leptonica struct names L_Compressed_Data, Pix
-
由 zdenop 提交于
Replace alloc_struct, free_struct
-
由 Stefan Weil 提交于
Those files can be built by doc/generate_manpages.sh. The manpages are needed for the installation, so add Makefile rules for them. Git must ignore the generated manpages. Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 Stefan Weil 提交于
The Tesseract project prefers that names, so fix the remaining exceptions. Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
由 Stefan Weil 提交于
Both functions simply call malloc, free. Remove also unneeded null pointer checks and use calloc where possible. Signed-off-by: NStefan Weil <sw@weilnetz.de>
-
- 29 4月, 2017 5 次提交