cython / cython/cython

'restrict' and 'readonly' argument to buffers

Open
#1,237 2 comments 0 reactions 0 assignees View on GitHub
Buffers defect
Dominant language
Cython
Stars
10.8k
Forks
1.6k
Avg merge
1d 19h
Merged PRs (30d)
39

Description

We should support

```
np.ndarray[restrict=True, readonly=True](int,) a
```

both which according to Sturla Molden gives a performance increase.

http://thread.gmane.org/gmane.comp.python.cython.devel/7717/focus=7851

http://thread.gmane.org/gmane.comp.python.cython.devel/8068/focus=8069

I'll start merging...

Migrated from http://trac.cython.org/ticket/678

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.