saviorand / lightbug_http

Simple and fast HTTP framework for Mojo! 🔥
MIT License
394 stars 27 forks source link

Bytes should be a DTypePointer instead of a List #37

Open saviorand opened 1 month ago

saviorand commented 1 month ago

Issue raised by the author of https://github.com/alainrollejr/mocodes

Is your feature request related to a problem? Please describe. The application does operations on Int8 bytes, so performance is important

Describe the solution you'd like Bytes() should be an Int8 DTypePointer instead of a List. This should allow to make operations with less computational overhead (in theory)

Describe alternatives you've considered Potentially can reference the Bytes() implementation in Basalt, a Mojo ML framework: https://github.com/basalt-org/basalt