github-actions[bot] commented on code in PR #41240: URL: https://github.com/apache/beam/pull/41240#discussion_r4682002753
########## sdks/python/apache_beam/coders/coder_impl.pxd: ########## @@ -276,6 +276,9 @@ cdef class LengthPrefixCoderImpl(StreamCoderImpl): cdef CoderImpl _value_coder +cdef TimestampCoderImpl _TIMESTAMP_CODER_IMPL Review Comment: **🟢 Nit**: Consider also declaring `cdef int _TIMESTAMP_ENCODED_SIZE` here so Cython accesses the precomputed constant as a C `int` instead of performing a Python module dictionary lookup and integer addition in `estimate_size`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
