Skip to content

Commit

Permalink
Disable profiling in cythonized code by default. (#30938)
Browse files Browse the repository at this point in the history
* Remove Cython profiling.

* Update CHANGES.md
  • Loading branch information
tvalentyn authored Apr 16, 2024
1 parent 6bca710 commit 6366bd4
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

## New Features / Improvements

* X feature added (Java/Python) ([#X](https://github.com/apache/beam/issues/X)).
* Profiling of Cythonized code has been disabled by default. This might improve performance for some Python pipelines ([#30938](https://github.com/apache/beam/pull/30938)).
* Bigtable enrichment handler now accepts a custom function to build a composite row key. (Python) ([#30974](https://github.com/apache/beam/issues/30975)).

## Breaking Changes
Expand Down
1 change: 0 additions & 1 deletion sdks/python/apache_beam/coders/coder_impl.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# limitations under the License.
#

# cython: profile=True

cimport cython

Expand Down
1 change: 0 additions & 1 deletion sdks/python/apache_beam/metrics/monitoring_infos.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#

# cython: language_level=3
# cython: profile=True

# pytype: skip-file

Expand Down
1 change: 0 additions & 1 deletion sdks/python/apache_beam/runners/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# cython: profile=True
# cython: language_level=3

"""Worker operations executor.
Expand Down
1 change: 0 additions & 1 deletion sdks/python/apache_beam/runners/worker/opcounters.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#

# cython: language_level=3
# cython: profile=True

"""Counters collect the progress of the Worker for reporting to the service."""

Expand Down
1 change: 0 additions & 1 deletion sdks/python/apache_beam/runners/worker/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#

# cython: language_level=3
# cython: profile=True

"""Worker operations executor."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# limitations under the License.
#

# cython: profile=True
# cython: language_level=3

"""State sampler for tracking time spent in execution steps.
Expand Down
1 change: 0 additions & 1 deletion sdks/python/apache_beam/testing/fast_test_utils.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# limitations under the License.
#

# cython: profile=True

cimport libc.stdint

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# limitations under the License.
#

# cython: profile=True

""" For internal use only. No backwards compatibility guarantees."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# limitations under the License.
#

# cython: profile=True
# cython: language_level=3

""" For internal use only. No backwards compatibility guarantees."""
Expand Down
1 change: 0 additions & 1 deletion sdks/python/apache_beam/utils/counters.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# limitations under the License.
#

# cython: profile=True
# cython: overflowcheck=True

cdef class Counter(object):
Expand Down
1 change: 0 additions & 1 deletion sdks/python/apache_beam/utils/windowed_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
# editing this file as WindowedValues are created for every element for
# every step in a Beam pipeline.

# cython: profile=True
# cython: language_level=3

# pytype: skip-file
Expand Down

0 comments on commit 6366bd4

Please sign in to comment.