kamil-tekiela
Repos
33
Followers
20
Following
1

Bot to automatically flag unnecessary comments on Stack Overflow after a year

1
0

Events

delete branch
kamil-tekiela delete branch Fix-ENGINE-escaping
Created at 1 day ago
delete branch
kamil-tekiela delete branch getTrackingIcon
Created at 1 day ago
delete branch
kamil-tekiela delete branch Fix-failing-transformation-tests-on-ARM
Created at 1 day ago
delete branch
kamil-tekiela delete branch fix-merge-issues
Created at 1 day ago
delete branch
kamil-tekiela delete branch Fix-param-type-in-setUserValue
Created at 1 day ago
delete branch
kamil-tekiela delete branch measure-time-only-for-user-queries
Created at 1 day ago
delete branch
kamil-tekiela delete branch psalm-baseline
Created at 1 day ago
pull request opened
Update psalm-baseline.xml

I think these are all false posivites and I can't see anything actionable here.

Created at 1 day ago
create branch
kamil-tekiela create branch psalm-baseline
Created at 1 day ago
pull request opened
Optimize isList

This is a follow up to the discussion from #247. During normal usage, I noticed this function is very inefficient. It doesn't use the built-in function array_is_list and the polyfil is very inefficient for most cases. Yes, the current implementation is very efficient for true lists, but has very bad performance with any other list, e.g. the one from the previous PR.

The current implementation would benefit from a very simple optimization: foreach (array_keys($array) as $k) { but no sense in doing this if we can achieve an overall better performance with just array_keys.

The current implementation builds a new array in memory. This is super efficient if the array was built like this range(1, 1000). But if the array is large and contains other arrays or objects then building a copy of it is very bad. So we need to get rid of array_values(). This also solves the issue from previous PR because we are no longer comparing the values.

This is the most efficient and the most correct implementation I could find.

Created at 1 day ago
create branch
kamil-tekiela create branch Improve-isList
Created at 1 day ago
Created at 1 day ago
pull request opened
Measure time only for user queries

Fixes #18296. We are only interested in the execution time of the user queries. All queries in Tracker are executed via control user.

Created at 2 days ago
create branch
kamil-tekiela create branch measure-time-only-for-user-queries
Created at 2 days ago
issue comment
Difference between query time reported by phpMyAdmin and MariaDB

Thanks. This is caused by #18280

Created at 2 days ago

Improve types for range()

Created at 3 days ago

Improve types for range()

Created at 3 days ago
pull request opened
Improve types for range()

This is based on the new RFC https://wiki.php.net/rfc/proper-range-semantics While the RFC is only in discussion phase, SA should already pick up these issues. Regardless of the final status of RFC, there should be no negative or 0 step values, and start/end should be string|float|int. While resources, arrays and objects are accepted, this is NOT the documented functionality. Using it is currently relying on implementation detail and is undefined behaviour. We can also promise that the return value is non-empty-array because the end is inclusive. This means that range(1, 1) will return [1], and an empty array will only be returned if we use exotic values that break the algorithm, e.g. NAN.

Created at 3 days ago
create branch
kamil-tekiela create branch improve-range
Created at 3 days ago
delete branch
kamil-tekiela delete branch first-class-callable
Created at 6 days ago
issue comment
Use first class callables

@MauricioFauth This can be merged now.

Created at 6 days ago
pull request reopened
Use first class callables

Pending reply to https://github.com/slevomat/coding-standard/issues/1526

Created at 6 days ago
pull request closed
Use first class callables

Pending reply to https://github.com/slevomat/coding-standard/issues/1526

Created at 6 days ago

Update DbiDummy.php

Signed-off-by: Kamil Tekiela tekiela246@gmail.com

Created at 6 days ago
pull request opened
Fix param type in setUserValue

Fixes #18290

Created at 6 days ago
create branch
kamil-tekiela create branch Fix-param-type-in-setUserValue
Created at 6 days ago
create branch
kamil-tekiela create branch fix-merge-issues
Created at 1 week ago