Add profile=False to currently unprofiled cython

This commit is contained in:
Adriane Boyd 2023-09-12 08:49:41 +02:00
parent 36201cb6a1
commit 55614d6799
23 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,4 @@
# cython: profile=False
from .errors import Errors
IOB_STRINGS = ("", "I", "O", "B")

View File

@ -1,4 +1,5 @@
# cython: embedsignature=True
# cython: profile=False
# Compiler crashes on memory view coercion without this. Should report bug.
cimport numpy as np
from libc.string cimport memset

View File

@ -1,4 +1,5 @@
# cython: infer_types=True, cdivision=True, boundscheck=False
# cython: profile=False
cimport numpy as np
from libc.math cimport exp
from libc.stdlib cimport calloc, free, realloc

View File

@ -1,4 +1,5 @@
# cython: infer_types
# cython: profile=False
import warnings
import numpy

View File

@ -1,4 +1,4 @@
# cython: profile=False
IDS = {
"": NO_TAG,
"ADJ": ADJ,

View File

@ -1,4 +1,5 @@
# cython: infer_types=True, binding=True
# cython: profile=False
from cython.operator cimport dereference as deref
from libc.stdint cimport UINT32_MAX, uint32_t
from libc.string cimport memset

View File

@ -0,0 +1 @@
# cython: profile=False

View File

@ -1,3 +1,4 @@
# cython: profile=False
from cymem.cymem cimport Pool
from libc.stdint cimport int32_t

View File

@ -1,4 +1,5 @@
# cython: infer_types=True
# cython: profile=False
from libcpp.vector cimport vector
from ...tokens.doc cimport Doc

View File

@ -1,4 +1,5 @@
# cython: infer_types=True
# cython: profile=False
from __future__ import print_function
from cymem.cymem cimport Pool

View File

@ -1,4 +1,5 @@
# cython: infer_types=True, cdivision=True, boundscheck=False, binding=True
# cython: profile=False
from __future__ import print_function
cimport numpy as np

View File

@ -1,4 +1,5 @@
# cython: infer_types=True
# cython: profile=False
cimport cython
from libc.stdint cimport uint32_t
from libc.string cimport memcpy

View File

@ -1,4 +1,5 @@
# cython: optimize.unpack_method_calls=False
# cython: profile=False
IDS = {
"": NIL,
"IS_ALPHA": IS_ALPHA,

View File

@ -1,4 +1,5 @@
# cython: infer_types=True, cdivision=True, boundscheck=False, binding=True
# cython: profile=False
from typing import Generator, List, Tuple
cimport cython

View File

@ -1,3 +1,4 @@
# cython: profile=False
cimport numpy as np
from libc.string cimport memset

View File

@ -1,3 +1,4 @@
# cython: profile=False
cimport numpy as np
import copy

View File

@ -1,3 +1,4 @@
# cython: profile=False
import struct
import weakref
from copy import deepcopy

View File

@ -1,4 +1,5 @@
# cython: infer_types=True
# cython: profile=False
# Compiler crashes on memory view coercion without this. Should report bug.
cimport numpy as np

View File

@ -1,3 +1,4 @@
# cython: profile=False
import re
from itertools import chain
from typing import List, Tuple

View File

@ -1,3 +1,4 @@
# cython: profile=False
from typing import List
import numpy

View File

@ -1,3 +1,4 @@
# cython: profile=False
from collections.abc import Iterable as IterableInstance
import numpy

View File

@ -1,3 +1,4 @@
# cython: profile=False
import warnings
import srsly

View File

@ -0,0 +1 @@
# cython: profile=False