
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Experimental repo to run Rusts itertools in Python.
Initially, this will be mostly used as a proof of concept. This is to investigate the comparisons between:
Practically, this means not all functionality from rust's itertools will be available
Often, the major goal of porting Rust functionality over to Python is for speed. So far, my initial experimentation has shown that that gain is very low (or even non-existant) due to 2 main reasons:
itertools
is mostly written in C so already quite fast and roughly on par with Rustmore_itertools
and new python functions: not having to copy over the results back to Python is a major gain
vs the rust implementations for the type of functions we deal with here. Example: there are over 36 million
permutations of the numbers 0 to 9 (incl 9). Generating in Rust and then accessing from Python takes 2.24 seconds
on my pc, where the CPython itertools takes 0.557 seconds to do the same.There are some exceptions though, especially for:
more_itertools
and additional functions in this repo)Next to this, you can use this repository for functionality not available in Python's itertools
or if you prefer
the way the Rust version is setup.
The Github Actions setup to automatically crossbuild Python packages across operating systems has been based on the
setup in the rtoml project (although first using the old setuptools
based
setup, because of the link on the setuptools-rust
page..).
Of course, also credit to the Rust itertools
project and inspiration
from the more-itertools and of course the core Python itertools
projects.
itertools
packagesFAQs
Run Rusts itertools and more in Python.
We found that rust-itertools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.