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 from .errors import Errors
IOB_STRINGS = ("", "I", "O", "B") IOB_STRINGS = ("", "I", "O", "B")

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,5 @@
# cython: infer_types=True, binding=True # cython: infer_types=True, binding=True
# cython: profile=False
from cython.operator cimport dereference as deref from cython.operator cimport dereference as deref
from libc.stdint cimport UINT32_MAX, uint32_t from libc.stdint cimport UINT32_MAX, uint32_t
from libc.string cimport memset 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 cymem.cymem cimport Pool
from libc.stdint cimport int32_t from libc.stdint cimport int32_t

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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