1
0
mirror of https://github.com/m00natic/vlfi.git synced 2024-10-05 18:30:51 +01:00
Commit Graph

289 Commits

Author SHA1 Message Date
Andrey Kotlarski
68d6c1bc33 vlf-occur changes:
- support multi-line matches
- divide user regex search from line counting
- fix wrong last match overall position
- fix edge cases of incorrect line numbers, matches in last chunk line
which is incomplete
2014-12-13 18:49:37 +02:00
Andrey Kotlarski
0fa624837a Optimize unconditional chunk loading and prefer it in more cases of
overlapping batch moves.
2014-12-13 18:46:57 +02:00
Andrey Kotlarski
f4526a1492 Forbid short-cutting in line search. 2014-12-13 18:41:14 +02:00
Andrey Kotlarski
bd5f9ca6fe Back to using per buffer profiling for encode speed. 2014-12-13 18:39:35 +02:00
Andrey Kotlarski
1c961f45b2 Fix whole file reload in read-only buffer on vlf-mode exit. 2014-12-13 18:37:31 +02:00
Andrey Kotlarski
d1a6800b5b Move vlf information from buffer name to the mode line. 2014-12-13 02:03:58 +02:00
Andrey Kotlarski
a7be7136be Set vlf-tune-max with proper value in case RAM size is wrongly
determined.
2014-11-18 12:02:24 +02:00
Andrey Kotlarski
f43ada1173 Fix byte compilation warnings. 2014-10-16 02:56:34 +03:00
Andrey Kotlarski
5dd9e2cd02 Adjust address parts of hexlified buffer according to vlf-start-pos. 2014-10-16 02:56:34 +03:00
Andrey Kotlarski
305d8022c4 Use shared profiling info for encode, write and hexl operations. 2014-10-08 19:33:59 +03:00
Andrey Kotlarski
d579b7b3e2 Workaround local maximum in batch tune. 2014-10-07 14:18:34 +03:00
Andrey Kotlarski
ce13609f14 Fix vlf-ediff at the borders of hexl buffers. 2014-10-07 13:20:04 +03:00
Andrey Kotlarski
673ae08848 Lower tramp verbosity level. 2014-10-07 13:19:40 +03:00
Andrey Kotlarski
ac8d4008bd Fixes to hexl-mode activation. 2014-10-07 01:42:33 +03:00
Andrey Kotlarski
7b9befe81a - don't load unnecessary data at the end of search or occur
- don't flood profile vector with approximations in linear search
2014-10-07 01:33:21 +03:00
Andrey Kotlarski
61599a007f Change linear tune to search only known measures and use it to
initialize occur indexing.  Make default tune step smaller.
2014-10-02 13:49:42 +03:00
Andrey Kotlarski
3cfa9b1935 Refactor vlf-query-replace and don't adjust batch size if only
statistics are enabled.
2014-09-26 15:22:25 +03:00
Andrey Kotlarski
f63ea96c2b Document new query replace and save options. 2014-09-26 14:14:16 +03:00
Andrey Kotlarski
c3a308c835 Optimize save performance over the temp file if such is used. Add
customization option whether to use temp file.
2014-09-26 14:00:01 +03:00
Andrey Kotlarski
842569ae07 Add ability to use temporary file when adjusting content on save. 2014-09-26 01:56:12 +03:00
Andrey Kotlarski
2c660b064f Fix positive goto-line search and make highlighting of match optional. 2014-09-25 19:15:12 +03:00
Andrey Kotlarski
a9c14e2d4c Add regexp query replace over whole file command. 2014-09-25 17:54:42 +03:00
Andrey Kotlarski
023ee704e7 Declare hexl functions to please byte compiler. 2014-09-25 17:53:21 +03:00
Andrey Kotlarski
e4a2e806c9 Optimize goto-line for hexl-mode, no need to search. 2014-09-25 01:25:48 +03:00
Andrey Kotlarski
b9187918f7 Improve vlf performance with hexl-mode. Align batches to hexl-bits
width.
2014-09-25 01:23:08 +03:00
Andrey Kotlarski
d9cc6fb65e Fix vlf-tune-optimal-load in case best value prunes slower times leaving
all-less flag on.
2014-09-08 14:32:02 +03:00
Andrey Kotlarski
199209fe15 Fix vlf-tune-optimal-load with no optional arguments supplied. 2014-09-08 12:36:35 +03:00
Andrey Kotlarski
06b4f856ac Respect disabled tune settings and move custom options. 2014-09-08 02:21:09 +03:00
Andrey Kotlarski
ff06509caa Document tune functionality. 2014-09-08 02:19:29 +03:00
Andrey Kotlarski
9b6657bcc5 Replace usage of conservative tune in single batch operations with load
tuning.
2014-09-07 22:10:56 +03:00
Andrey Kotlarski
ca564988e0 Change vlf-tune-get-optimal to optimize on total time of primitive
operations, also fix hexl timing functions not to book in cases where
hexl is already (not) active.
2014-09-07 18:05:13 +03:00
Andrey Kotlarski
0d2c096ed6 Restore batch size and hexl mode in case of failed search or occur. 2014-09-07 18:04:17 +03:00
Andrey Kotlarski
d526ea8ef8 Apply and restore batch size in more cases. 2014-09-07 16:25:36 +03:00
Andrey Kotlarski
9271f68c05 Add function to linearly search best batch size according to existing
measurements and offer it when interactively changing batch size.
2014-09-07 00:08:32 +03:00
Andrey Kotlarski
35ede9403c Restore batch size after save with adjustment. 2014-09-07 00:07:21 +03:00
Andrey Kotlarski
ee7409bfa5 Tune batch size in more cases. 2014-09-07 00:06:10 +03:00
Andrey Kotlarski
11c7af4b04 Change handling of measurement values to support approximations. 2014-09-07 00:02:14 +03:00
Andrey Kotlarski
5651ee3d61 Rename vlf-tune-optimal to vlf-tune-batch. 2014-09-06 23:59:32 +03:00
Andrey Kotlarski
f3212ec9a6 Fix measure approximation and allow tuning to just over half file
batch.
2014-09-05 19:11:48 +03:00
Andrey Kotlarski
48a014f3bc Fix write measuring and endless loop in nearby approximation. 2014-09-05 14:44:24 +03:00
Andrey Kotlarski
facdb9f6bc Fix binary tune base case and add approximation after access to
previously queried measure that is still missing.
2014-09-05 13:52:46 +03:00
Andrey Kotlarski
e8bb4a91da Apply batch size tuning on adjacent moves, search, save adjusting and
report total times.
2014-09-05 02:52:32 +03:00
Andrey Kotlarski
e18a05b7cb Add linear search for tuning and prefer smaller batches. 2014-09-05 02:49:55 +03:00
Andrey Kotlarski
d85f3d43fc Fix access to uninitialized measurements when tuning. 2014-09-04 15:43:37 +03:00
Andrey Kotlarski
0d9cc8e488 Don't measure encoding of too small region when adjusting chunk start
and fix passing of elements to tune in vlf-occur.
2014-09-04 15:26:25 +03:00
Andrey Kotlarski
d67825c4cd Move back to using average speed when measuring and tuning. Be more
precise when choosing index for measurement.
2014-09-04 15:25:44 +03:00
Andrey Kotlarski
70a81077ab Add vlf-batch-size tuning in vlf-occur. 2014-09-04 03:34:27 +03:00
Andrey Kotlarski
5379943cd7 Save times instead of speeds, compare on cumulative speed when tuning. 2014-09-04 03:33:05 +03:00
Andrey Kotlarski
fb0503064d Add basic tune strategies. 2014-09-03 02:35:20 +03:00
Andrey Kotlarski
069b2f55d4 Replace operations with respective vlf-tune wrappers. 2014-08-31 02:38:14 +03:00