Skip to content

Sort() method is slow #68

Closed
Closed

Description

@malikhan-dev

the following code takes a long time to execute. it seems the sort function is not fast at all!

	result := collections.From(&items).
		WhereEx(expr.Prop("Flag").True()).
		Take(2).SortEx(expr.Prop("Id").Less(), true).
		UpdateEx(expr.Prop("Name").SetString(" Updated")).
		Collect()

Activity

  1. malikhan-dev commented on Jul 24, 2026

    @malikhan-dev
    OwnerAuthor

    thats correct. its because we use heaps. but with the release of ZenQL v2.0.7, sort operation will be alot faster... (using standard library)

  2. added a commit that references this issue on Jul 24, 2026
  3. changed the title [-]Sort() Method is so slow[/-] [+]Sort() Method is slow[/+] on Jul 24, 2026
  4. changed the title [-]Sort() Method is slow[/-] [+]Sort() method is slow[/+] on Jul 24, 2026
  5. malikhan-dev commented on Jul 24, 2026

    @malikhan-dev
    OwnerAuthor

    changes are not expected to break Apis and user syntaxes.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions