[Libreoffice-bugs] [Bug 129256] ReDim is slow when array custom type is explicitly known
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sat Dec 7 13:59:27 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=129256
--- Comment #8 from Mike Kaganski <mikekaganski at hotmail.com> ---
(In reply to Julien Nabet from comment #7)
Oh sorry! The ReDimTest is 3 tests. Could you please create two graphs
separately for ReDimTest1 and ReDimTest2 in
> Type TCustomType
> m_arr(20) As Long
> m_str As String
> End Type
>
> Sub CustomReDim1(ByRef A() As TCustomType, newU As Long)
> ReDim Preserve A(newU)
> End Sub
>
> Sub CustomReDim2(ByRef A(), newU As Long)
> Dim oldU As Long, emptyVal As TCustomType, i As Long
> oldU = UBound(A)
> ReDim Preserve A(newU)
> For i = oldU + 1 To newU
> A(i) = emptyVal
> Next i
> End Sub
>
> Sub ReDimTest1
> Dim A(0) As TCustomType, i As Long
> Const maxIter = 2000
> For i = 1 To maxIter
> CustomReDim1(A, i)
> Next i
> End Sub
>
> Sub ReDimTest2
> Dim A(0) As TCustomType, i As Long
> Const maxIter = 2000
> For i = 1 To maxIter
> CustomReDim2(A, i)
> Next i
> End Sub
Thank you!
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191207/50a1dc56/attachment.html>
More information about the Libreoffice-bugs
mailing list