Remove profile=True from currently profiled cython

This commit is contained in:
Adriane Boyd 2023-09-12 08:50:01 +02:00
parent 55614d6799
commit 538304948e
24 changed files with 22 additions and 24 deletions

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, profile=True # cython: infer_types=True
from typing import Iterable from typing import Iterable

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, profile=True # cython: infer_types=True
from pathlib import Path from pathlib import Path
from typing import Iterable, Tuple, Union from typing import Iterable, Tuple, Union

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, profile=True # cython: infer_types=True
from typing import Any, Callable, Dict, Iterable from typing import Any, Callable, Dict, Iterable
import srsly import srsly

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, profile=True # cython: infer_types=True
import warnings import warnings
from collections import defaultdict from collections import defaultdict
from itertools import product from itertools import product

View File

@ -1,4 +1,4 @@
# cython: profile=True, binding=True, infer_types=True # cython: binding=True, infer_types=True
from cpython.object cimport PyObject from cpython.object cimport PyObject
from libc.stdint cimport int64_t from libc.stdint cimport int64_t

View File

@ -1,4 +1,4 @@
# cython: binding=True, infer_types=True, profile=True # cython: binding=True, infer_types=True
from typing import Iterable, List from typing import Iterable, List
from cymem.cymem cimport Pool from cymem.cymem cimport Pool

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, profile=True # cython: infer_types=True
from preshed.maps cimport map_clear, map_get, map_init, map_iter, map_set from preshed.maps cimport map_clear, map_get, map_init, map_iter, map_set
import warnings import warnings

View File

@ -1,5 +1,4 @@
# cython: infer_types=True # cython: infer_types=True
# cython: profile=True
import numpy import numpy
from thinc.extra.search cimport Beam from thinc.extra.search cimport Beam

View File

@ -1,4 +1,4 @@
# cython: profile=True, cdivision=True, infer_types=True # cython: cdivision=True, infer_types=True
from cymem.cymem cimport Address, Pool from cymem.cymem cimport Address, Pool
from libc.stdint cimport int32_t from libc.stdint cimport int32_t
from libcpp.vector cimport vector from libcpp.vector cimport vector

View File

@ -1,4 +1,4 @@
# cython: profile=True, infer_types=True # cython: infer_types=True
"""Implements the projectivize/deprojectivize mechanism in Nivre & Nilsson 2005 """Implements the projectivize/deprojectivize mechanism in Nivre & Nilsson 2005
for doing pseudo-projective parsing implementation uses the HEAD decoration for doing pseudo-projective parsing implementation uses the HEAD decoration
scheme. scheme.

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, profile=True, binding=True # cython: infer_types=True, binding=True
from collections import defaultdict from collections import defaultdict
from typing import Callable, Optional from typing import Callable, Optional

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, profile=True, binding=True # cython: infer_types=True, binding=True
from itertools import islice from itertools import islice
from typing import Callable, Dict, Optional, Union from typing import Callable, Dict, Optional, Union

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, profile=True, binding=True # cython: infer_types=True, binding=True
from typing import Optional from typing import Optional
import numpy import numpy

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, profile=True, binding=True # cython: infer_types=True, binding=True
from collections import defaultdict from collections import defaultdict
from typing import Callable, Optional from typing import Callable, Optional

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, profile=True, binding=True # cython: infer_types=True, binding=True
import warnings import warnings
from typing import Callable, Dict, Iterable, Iterator, Tuple, Union from typing import Callable, Dict, Iterable, Iterator, Tuple, Union

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, profile=True, binding=True # cython: infer_types=True, binding=True
from typing import Callable, List, Optional from typing import Callable, List, Optional
import srsly import srsly

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, profile=True, binding=True # cython: infer_types=True, binding=True
from itertools import islice from itertools import islice
from typing import Callable, Optional from typing import Callable, Optional

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, profile=True, binding=True # cython: infer_types=True, binding=True
from itertools import islice from itertools import islice
from typing import Callable, Optional from typing import Callable, Optional

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, profile=True, binding=True # cython: infer_types=True, binding=True
from typing import Callable, Dict, Iterable, Iterator, Optional, Tuple from typing import Callable, Dict, Iterable, Iterator, Optional, Tuple
import srsly import srsly

View File

@ -1,4 +1,4 @@
# cython: embedsignature=True, profile=True, binding=True # cython: embedsignature=True, binding=True
cimport cython cimport cython
from cymem.cymem cimport Pool from cymem.cymem cimport Pool
from cython.operator cimport dereference as deref from cython.operator cimport dereference as deref

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, bounds_check=False, profile=True # cython: infer_types=True, bounds_check=False
from cymem.cymem cimport Pool from cymem.cymem cimport Pool
from libc.string cimport memset from libc.string cimport memset

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, bounds_check=False, profile=True # cython: infer_types=True, bounds_check=False
from typing import Set from typing import Set
cimport cython cimport cython

View File

@ -1,4 +1,4 @@
# cython: infer_types=True, profile=True, binding=True # cython: infer_types=True, binding=True
from typing import Callable from typing import Callable
from cython.operator cimport dereference as deref from cython.operator cimport dereference as deref

View File

@ -1,4 +1,3 @@
# cython: profile=True
import functools import functools
import numpy import numpy