Skip to content

Fixed size container for buffer in CircularDeque #958

Open

Description

@artemsolod

Would it make sense to switch from Vector as the container for buffer of CircularDeque (and potentially other fixed size containers)? Since we have Memory{T} and FixedSizeArray they could eliminate a pointer jump. Or the performance gain is expected to be negligible?

The concerns I see are:

Activity

  1. oxinabox commented on Oct 22, 2025

    @oxinabox
    Member

    compatibility with older julia versions

    We can always use a

    if VERSION < v"1.11"
        const Memory = Vector
    end

    or something like that

    Base._unsetindex!

    At least on the current version, this function is also overloaded for Memory.

    This seems a fine change as far as the issues go

    However, I am not sure if there is any performance or otherwise gain from doing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions