Comments (3)
Seems like this algorithm for text parsing is a bit hacky.
Since you're saying you need special treatment for each character, and this is of course slowing things down, I've one very simple idea to speed it up:
Assume that if the first character in a word is visible, then the rest is in 99.9999% of cases visible as well. For example if e in example is visible there's no need to test for xample. I don't know a single webpage where words get split-up into multiple lines or anything like that. If an average word has five characters then this might speed part of your algorithm up by a factor of five. Not sure how much that helps or if it helps at all.
from browsh.
Relying to this at: #34 (comment)
from browsh.
This might have been fixed in v1.1.3?
from browsh.
Related Issues (20)
- Ubuntu x64 fresh install returns panic runtime error HOT 28
- Question: use Browsh as a extension/add-on for browser HOT 4
- login on gitlab go in loop
- Dark Mode Or Simple Color Inversion? HOT 1
- Can't build due to lack of get-gobindata script HOT 6
- Unclear behavior of background Firefox process when quitting Browsh HOT 1
- Loopback address support HOT 3
- Support `about:blank` as `startup-url`
- can i use browsh into a low ram systems? HOT 3
- Cannot use browsh with portable firefox bin on Windows
- deb package no longer uses firefox standalone HOT 1
- [Feature Request/Question] Dockerless install/FreeBSD server support. HOT 1
- Windows 10 - "Waiting for Firefox to connect..." HOT 2
- Unable to see normal web-page in plain tty1-tty6 while running latest browsh 1.8.0 on Debian 11 HOT 8
- config.toml not loading firefox preferences
- unable to install via `plasma-discover`
- Windows infinite loading HOT 2
- Half of the webpage is gone (resolution issue?) when using --http-server-mode
- Can `browsh` reuse the profile of existing google chrome?
- can't select text && can't build project
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 browsh.