Skip to content

Conversation

@ttodua
Copy link
Member

@ttodua ttodua commented Dec 16, 2025

other optimization for safe methods.

eg. 1M iterations of safe_bool gains around 70%+ (from ~600ms to 180 ms)

image

return defaultValue;
}
if ((typeof value === 'object') && !Array.isArray (value)) {
if ((value !== undefined) && (typeof value === 'object') && !Array.isArray (value)) {
Copy link
Member Author

@ttodua ttodua Dec 16, 2025

Choose a reason for hiding this comment

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

this line is not performance related, just made it inliner (there were unnecessary checks),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants