Comments (5)
Note: You may need to increase the number of goroutines to 1000 or so.
from go-diff.
Needed 10000 goroutines to get a missmatch (and needed to changed the expected data, are you running the latest version?) 👍 However, this should be expected under load because of the timeout argument that is set to one second by default. Please add the following to your example. If you are still getting mixed results we should have serious look at this.
func init() {
dmp.DiffTimeout = 0 // Do not time out on diff matching
}
Maybe we should change the default timeout so that there is no timeout?
from go-diff.
Ah! A timeout might explain things. I updated to the latest version after filing this, but I still had the same issue (as you discovered, you have to set it to over 10000). Anyway, I'll try the timeout setting. Thanks!
from go-diff.
Please let me know how it went
from go-diff.
It didn't go well. Setting dmp.DiffTimeout
to 0 made it run indefinitely. I'm not so sure it matters though, because it takes so many goroutines to have it show.
from go-diff.
Related Issues (20)
- Tag new release? HOT 2
- runtime error: index out of range while processing diff HOT 2
- How to tell percent different HOT 2
- New line characters removed after applying patch HOT 1
- Go 1.15: conversion from int to string yields a string of one rune, not a string of digits
- DiffPrettyText in windows cmd prints garbage
- diffmatchpatch: invalid diff output with CRLF line endings HOT 5
- Whitespace does not get shown with DiffPrettyText HOT 1
- Index out of range error, would like help investigating HOT 3
- how to only show different part? HOT 2
- Trying to match a long pattern fails HOT 1
- Get diff by words HOT 1
- [BUG] v1.2.0 seems to produce incorrect diff HOT 10
- Could an unified diff be output with go-diff? HOT 2
- panic: runtime error: slice bounds out of range HOT 2
- PatchApply panics with slice bounds out of range
- Is this repo still maintained? Friendly fork? HOT 3
- where are the non pretty options? HOT 4
- DiffPrettyText does does not colour all diffs with newlines
- Munged text leads to incorrect diffs HOT 4
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 go-diff.