Comments (6)
It is a known issue that this has performance issues with large files (see #6). There are some heuristics in place to try to minimize how often the tabstops get recalculated. However, it is impossible to detect when Notepad++ is doing a find and replace thus it always recalculates them after every single instance is replaced unfortunately.
from elastictabstops.
See #6 (comment) for an experimental release that should address this issue.
from elastictabstops.
I don't know how technically possible it is, but an alternative solution would be to implement update throttling. If it turns out to be possible, here is how I would have done it:
If a change happens within 10ms* of the last change, then enter "throttle mode" (and tread this second change as if it happened in throttle mode). If a change happens in throttle mode; don't update the tabstops immediately but instead schedule the update to happen 10ms* in the future. If another change happens before the scheduled update, reschedule it to 10ms* after this change instead. The scheduled tabstop update also disables "throttle mode".
Note: 10ms is just a number I chose as an example, just make sure it's shorter than the fastest keyboard repeat rate setting (around 30ms).
from elastictabstops.
The way it works now is that it can aggregate several changes at once. Scintilla sends out notifications when changes are made. The plugin collects these until Scintilla says it is getting ready to redraw the screen, then the tab widths are recalculated. In theory a delay could be added but then it would force another screen redraw and I'm not sure what is optimal in that case.
from elastictabstops.
That sounds much better than what I described.
Note that I'm still using version 1.1 (custom build with elastic tabstops enabled for files with spaces) because I don't like the idea of the tabstops jumping around when scrolling. I would personally prefer having the change aggregation without the update-only-current-view part.
from elastictabstops.
I'm still on version 1.1 (custom build with elastic tabstops enabled for files with spaces)
v1.3 now allows this to be enabled for files with spaces.
I would personally prefer having the change aggregation without the update-only-current-view part.
Part of the problem is the there are 2 radically different use-cases for this plugin.
- Source code editing - It is mostly straight forward to locate "blocks" of text where tabs should be stretched out (e.g. block comments, etc). Normally the plugin only needs to parse through a few lines of code each time. Many times it only needs to look at parts of the lines. There is little to no performance hit noticeable.
- Tab delimited data - The plugin is incredibly helpful viewing data that is separated by tabs...however this means in most cases the entire file may affect column widths...and some data files are very large.
Alot of the difficulty is supporting both cases. To make edits quick, but also make "data columns" the appropriate widths without having to potentially parse alot of text.
from elastictabstops.
Related Issues (20)
- Excluded extensions HOT 2
- ReadMe does not explain the problem this plugin solves HOT 1
- Evaluation: Add ElasticTabstops 1.3 and above to nppPluginList HOT 1
- Plugin not working on V7.7 of notepad++ (64bit) HOT 3
- [Enhancement] Elastic CSV (Comma separated) files HOT 2
- Issue with files longer than 94 lines HOT 1
- 1.3.1 does not work in the notepad++ 7.8 HOT 10
- Not working :-( HOT 3
- Access violation reported when used in conjunction with Compare plugin HOT 2
- Port to Lua (LuaScript) HOT 1
- Doesn't work until I change and save settings HOT 3
- Support for elastic/aligned tabs when printed? HOT 3
- ElasticTabstops only works on first view HOT 4
- how to use it? It doesn't work for me HOT 2
- Open torrent file -> not responding HOT 7
- exclude character sequence HOT 4
- Differentiate between tabs at line start and elsewhere HOT 2
- Elastic Tabstops v1.3.1 (64 bit) breaks Notepad++ v8.3 (64-bit) HOT 4
- V1.3.1 does not work in the notepad++ 8.3.3 HOT 3
- Elastic Tabstops stopped working since np++ 8.3? HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elastictabstops.