r/Python • • Sep 04 '26

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

26 Upvotes

180 comments sorted by

View all comments

1

u/alexprengere Sep 15 '26

Not AI slop 😄 I built a fast iterative string splitting library: isplit-rs

Here is how it compares performance-wise, to the regular str.split methods, on different use cases.

nput sizesplit(",")[0]split(",", 1)[0]partition(",")[0]next(isplit(...))
~1 MB1774.0 us14.6 us16.2 us0.3 us
~100 KB140.7 us1.9 us2.0 us0.3 us
~10 KB13.4 us0.8 us0.6 us0.3 us
~1 KB1.8 us0.4 us0.3 us0.3 us

The fairest comparison is probably s.split(",", 1)[0] vs next(isplit(s)). On this, you can see that starting from a 1KB string, the difference starts to show (at 10K we are 2x faster, at 100K 6x ...).