Skip to content

Use DataView, remove dependency on ieee754 #365

Open

Description

@james-pre

DataViews would simplify a huge amount of the read* and write* methods. Additionally, using DataView would eliminate the need for the ieee754 dependency. This would save users time and storage when installing buffer. Additionally, ieee754 has not received any updates in the past 4 years.

Activity

  1. james-pre commented on Jan 6, 2025

    @james-pre
    Author
  2. yume-chan commented on Jan 8, 2025

    @yume-chan

    Creating DataViews cost CPU cycles and memory. If a user is dealing with many small Buffers, creating DataView for each of them will reduce the performance by more than 50%: https://github.com/yume-chan/ya-webadb/blob/main/libraries/no-data-view/benchmark.md

  3. james-pre commented on Jan 8, 2025

    @james-pre
    Author

    I heard about the performance hit somewhere else. Maybe only for reading and writing floats? I think that may be where the performance can be improved.

  4. self-assigned this
    on Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions