Skip to content

use @inbounds when getting the element of a tuple? #15

Open
@nsajko

Description

@nsajko

As shown in JuliaLang/julia#57091, deleting the bounds checking at an early stage may help the compiler generate better code.

Notes:

  • Not sure if the consideration applies here, given that checked_size_product is unlikely to be called with a large tuple
  • We lose :foldable by default by using @inbounds

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