Comments (6)
I'll fix this one. Looking into it now.
from git-blame.
Reverted to my original regex pattern in the commit above. fixes issue. will be adding unit test coverage for this file.
from git-blame.
Sorry I wasn't watching the repo so I missed this. There was a tiny bug in my regex that caused this to fail for the last line if it didn't end with a \n
but I have that fixed now.
I'd rather we use the new parsing rather than the original for the reasons that I explained in #21.
Oh, and I can go ahead and write some tests while I'm at it, too.
Want to reopen this issue or should I create another issue for this?
from git-blame.
I'll fix the bug in my regex as part of fixing issue #25
from git-blame.
I think the regex we have right now is fine and I havent noticed any performance issues with it. What were the advantages of yours again?
from git-blame.
@alexcorre, the main feature is that it is iterative so it can handle larger data sets with a smaller memory footprint.
I ran some tests with benchmark.js and it is about 2x faster which is probably due to the smaller memory footprint and perhaps the fact that the RegExp doesn't use a lookahead.
$ node test.js
RegExp split x 56,146 ops/sec ±0.80% (92 runs sampled)
RegExp iterative x 98,484 ops/sec ±0.45% (102 runs sampled)
Fastest is RegExp iterative
I have the fixed RegExp and a couple of tests if you'd like me to make another PR.
Just let me know.
from git-blame.
Related Issues (20)
- Gutter is empty after opening git blame HOT 12
- Gutter Readout Garbled HOT 1
- Add grouping of lines that belong to the same commit HOT 1
- Cannot read property 'replace' of null HOT 5
- Hover Tips sometimes get stuck HOT 1
- Gutter is broken HOT 3
- Doesn't support renames/copys with -C -C -C…?
- Show commit authors in different colors HOT 10
- Gutter resize is Broken HOT 3
- Allow nested repositories HOT 1
- Cannot find 'highlights-component' in the require cache. HOT 1
- use es6 + lint on all files
- get off react-for-atom
- commit description tooltip remains present when gutter is closed HOT 2
- Can't see commit's author HOT 8
- Is the one getting installed alessioalex/git-blame HOT 2
- date color
- `git-blame` Unable to display content HOT 7
- Tooltip remains after window closes HOT 1
- Uncaught Error: Cannot find module 'babel-runtime/helpers/extends' HOT 6
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 git-blame.