Comments (6)
Yeah, I was thinking about this the other day.
If we are to only load chunks of files at a time, can we still do things like search, line count, char count etc? We will need to decide what is considered a large file, so we can impose these kind of restrictions on anything above that size.
from iota.
We will also have to change how files are saved to accommodate large files too. Right now files are saved to a temporary directory then moved to replace the old version. This won't work well for large files.
from iota.
For a data structure, vis uses a piece table, to store the file in memory. This is very efficient for large files, since you can just mmap the file into memory.
Also, you might want to read this paper.
from iota.
A piece table might be a nice half-way step towards a rope, which I think would, in principle, also support mmap-ing files into a giant leaf node.
Thanks for that paper @ellisadigvom, this stuff is really helpful for someone as inexperienced as myself!
from iota.
@ellisadigvom that's very interesting, thanks for sharing! I have been leaning quite heavily towards a Rope recently, but have not had the time to sit down and try it out. This looks like a good alternative, though, definitely worth looking into. I had actually never heard of a piece table before..
Gonna give vis
a shot and see how it handles some big files :)
from iota.
So, anyone know of a piece table implementation in rust? :)
from iota.
Related Issues (20)
- panic during save if the cmd line argument is a dir
- Go to line cmd
- Make commands chainable HOT 2
- Some system of hints
- No way to add a new line HOT 1
- Syntax highlighting improvements HOT 2
- Crash in Vi mode after pressing 'a' followed by 'w' HOT 3
- (Vi mode) Crash on relative cursor move
- where is binary release? how to install? HOT 5
- Goto Anything HOT 4
- Move to start of line not working properly HOT 2
- Can't exit from editor (started with no name)
- Spanish translation
- Add Json support for keybindings, to add own keybindings HOT 1
- Implement LSP HOT 1
- Update rustc-serialize with serde
- Marks & MarkPosition and how are they kept valid?
- How to quit when run without filename HOT 1
- termbox HOT 1
- Activity? Still maintained? HOT 1
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 iota.