Comments (2)
Good question. I remember thinking about merging the two at some point, but given how critical the performance is here, ended up optimising them separately. I even recall making them more similar again at some point, but that was already a while ago...
I would expect bitarray
to export a buffer, which could then be unpacked and used in acora. Since the bytes
type (and Python's bytearray
, array.array
, memoryview
and others) supports the buffer interface as well, it should be enough to switch the current bytes implementation to char[:] buf
(or unsigned char[:]
?) as input and pass &buf[0]
and length.
from acora.
Want to give it a try?
from acora.
Related Issues (19)
- acora fails to match binary string patterns HOT 1
- Building mildly deep automatons takes a long time HOT 2
- Doesn't install on Windows HOT 2
- Possible to save a built acora object to disk? HOT 1
- install success in windows,but 'TypeError' error has occured.
- Can't STOP when I want to use longest match HOT 1
- longest match HOT 7
- Segmentation fault HOT 10
- Can't build Acora 1.7 HOT 6
- Searching for phrases across newlines.
- Does not build with python3.9 HOT 2
- How change language? HOT 1
- cython compile error HOT 3
- installation with pip fails on Solaris HOT 1
- The construction algorithm does not scale well. HOT 22
- Non-ISO-Latin/ASCII character sets HOT 3
- Implement Mapping : Add a value to each sequence stored in the automaton HOT 3
- Building automaton from sequences of integers
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 acora.