Ticket #4145 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

[with patch, positive review] linear codes list function is slow

Reported by: rlm Owned by: tbd
Priority: major Milestone: sage-3.1.3
Component: algebra Keywords:
Cc: Author(s):
Report Upstream: Reviewer(s):
Merged in: Work issues:

Description

Before:

sage: G = ExtendedBinaryGolayCode()
sage: time L = G.list()
CPU times: user 16.24 s, sys: 0.32 s, total: 16.57 s
Wall time: 17.14 s

After:

sage: G = ExtendedBinaryGolayCode()
sage: time L = G.list()
CPU times: user 3.65 s, sys: 0.04 s, total: 3.68 s
Wall time: 3.71 s

Attachments

trac_4145-lin-codes-slow.patch Download (0.9 KB) - added by rlm 2 years ago.

Change History

Changed 2 years ago by rlm

Changed 2 years ago by rlm

Changed 2 years ago by wdj

  • summary changed from [with patch, needs review] linear codes list function is slow to [with patch, positive review] linear codes list function is slow

This is obviously correct (the code is 1 line). I didn't know about the list method for vector spaces but I'd not surprised that that list method is a great deal faster and more efficient that the current LinearCodes? one.

I have tested this does fix the comment 13 in #4115. Thanks Robert!

Changed 2 years ago by mabshoff

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to sage-3.1.3

Merged in Sage 3.1.3.alpha0

Note: See TracTickets for help on using tickets.