Skip to content

Conversation

MukjepScarlet
Copy link

@MukjepScarlet MukjepScarlet commented Aug 21, 2025

This PR indicates to improve (maybe fix) ArrayDeque's removeIf(java.util.function.Predicate) method implementation. Currently it's of O(n^2), which is not correct as long as we already have a filterInPlace function.
Also, Kotlin's extension removeAll and retainAll with lambda on it also perform as O(n^2). It should be fixed, too.

@MukjepScarlet
Copy link
Author

Because the stdlib has:

                        moduleName = "kotlin-stdlib"
                        jvmTarget = JvmTarget.JVM_1_8
                        // providing exhaustive list of args here
                        freeCompilerArgs.set(
                            listOfNotNull(
                                "-Xjdk-release=6",

So this needs another way to do.

@MukjepScarlet
Copy link
Author

MukjepScarlet commented Aug 21, 2025

@fzhinkin Hello, I have new question about the expect and actual. Can I create different actual for stdlib and stdlib-jdk8?

Co-authored-by: Ji Sungbin (Forky) <[email protected]>
@fzhinkin
Copy link
Contributor

@MukjepScarlet

Can I create different actual for stdlib and stdlib-jdk8?

Not, it is not possible. For similar purposes stdlib uses PlatformImplementations and its inheritors.

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.

3 participants