Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store current data in sparse matrix #248

Closed
guimarqu opened this issue Jan 29, 2020 · 0 comments
Closed

Store current data in sparse matrix #248

guimarqu opened this issue Jan 29, 2020 · 0 comments
Labels
discussion Further information is requested

Comments

@guimarqu
Copy link
Contributor

Is it better to store current data in a sparse matrix instead of Dict to make loops over vars/constrs current data faster ?

What we currently do :

for (varid, var) in getvars(form)
    if getcurisactive(form, varid) && getcurisexplicit(form, varid)
        # do something
    end
end

What we could do :

for (varid, vardata) in getcurvarsdata(form)
   if getcurisactive(vardata) && getcurisexplicit(vardata)
      # do something
   end
end
@guimarqu guimarqu added the discussion Further information is requested label Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant