Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0b08d062
Kaydet (Commit)
0b08d062
authored
Eki 18, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vector with reserve() is slightly faster than deque here.
Change-Id: I9c2203662daa586e3fdbc9650b6ff61365c5bc60
üst
7460ddb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
scmatrix.cxx
sc/source/core/tool/scmatrix.cxx
+5
-2
No files found.
sc/source/core/tool/scmatrix.cxx
Dosyayı görüntüle @
0b08d062
...
@@ -141,10 +141,13 @@ class CompareMatrixElemFunc : std::unary_function<MatrixImplType::element_block_
...
@@ -141,10 +141,13 @@ class CompareMatrixElemFunc : std::unary_function<MatrixImplType::element_block_
static
_Comp
maComp
;
static
_Comp
maComp
;
MatrixImplType
maNewMat
;
MatrixImplType
maNewMat
;
std
::
deque
<
bool
>
maNewMatValues
;
std
::
vector
<
bool
>
maNewMatValues
;
public
:
public
:
CompareMatrixElemFunc
(
size_t
nRow
,
size_t
nCol
)
:
CompareMatrixElemFunc
(
size_t
nRow
,
size_t
nCol
)
:
maNewMat
(
nRow
,
nCol
,
false
)
{}
maNewMat
(
nRow
,
nCol
,
false
)
{
maNewMatValues
.
reserve
(
nRow
*
nCol
);
}
void
operator
()
(
const
MatrixImplType
::
element_block_node_type
&
node
)
void
operator
()
(
const
MatrixImplType
::
element_block_node_type
&
node
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment