Skip to content

chore: atualiza versão para 2.1.2 e melhora gestão de memória#233

Merged
jlsneto merged 15 commits intomasterfrom
v2.1.2
Jan 7, 2026
Merged

chore: atualiza versão para 2.1.2 e melhora gestão de memória#233
jlsneto merged 15 commits intomasterfrom
v2.1.2

Conversation

@jlsneto
Copy link
Member

@jlsneto jlsneto commented Sep 10, 2025

No description provided.

Copilot AI review requested due to automatic review settings December 28, 2025 13:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Cereja library to version 2.1.2 with a focus on memory management improvements and new cryptography features. The changes include replacing time.time() with time.monotonic() for more reliable elapsed time measurements, implementing comprehensive memory cleanup with weak references and threading locks, and introducing a new cryptography module with encryption/decryption capabilities.

Key Changes

  • Memory Management: Enhanced _Stdout, _ConsoleBase, Progress, and Matrix classes with weak references, thread locks, and proper cleanup methods to prevent memory leaks
  • Time Measurement: Migrated from time.time() to time.monotonic() across all timing-related code for monotonic clock guarantees
  • New Cryptography Module: Added cereja/hashtools/_crypto.py with custom HMAC-based stream cipher for encryption/decryption operations

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 30 comments.

Show a summary per file
File Description
cereja/init.py Updated version to 2.1.2 and added hashtools exports
cereja/hashtools/_crypto.py New cryptography module with custom stream cipher implementation
cereja/hashtools/init.py Added crypto module exports
tests/testcrypto.py Comprehensive test suite for new crypto functionality
cereja/experimental/gitchangelog.py New git changelog generation utility
cereja/utils/time.py Replaced time.time() with time.monotonic() in Timer class
cereja/utils/decorators.py Updated time_exec and scheduled decorators to use monotonic time
cereja/system/_win32.py Updated Windows timer implementation to use monotonic time
cereja/concurrently/process.py Updated process timing to use monotonic clock
cereja/display/_display.py Major refactoring with weak references, thread safety, and resource cleanup
cereja/array/_array.py Improved flatten algorithm, enhanced Matrix class with better documentation
cereja/utils/git/runner.py Modified git command execution with stdout redirection changes
tests/testsDataIterator.py Expanded test data for random element testing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

try:
self.stop()
self.cleanup()
except:
Copy link

Copilot AI Dec 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'except' clause does nothing but pass and there is no explanatory comment.

Copilot uses AI. Check for mistakes.
jlsneto and others added 8 commits December 29, 2025 04:29
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jlsneto jlsneto merged commit f1360dc into master Jan 7, 2026
3 checks passed
@jlsneto jlsneto deleted the v2.1.2 branch January 7, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant