# Fcsv read performance is low (but not when importing as csv)

**URL:** <https://discourse.slicer.org/t/fcsv-read-performance-is-low-but-not-when-importing-as-csv/10421>\
**Category:** Support\
**Created:** [February 24, 2020, 10:52pm UTC](https://discourse.slicer.org/t/fcsv-read-performance-is-low-but-not-when-importing-as-csv/10421 "2020-02-24T22:52:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [February 24, 2020, 10:52pm UTC](https://discourse.slicer.org/t/fcsv-read-performance-is-low-but-not-when-importing-as-csv/10421/1 "2020-02-24T22:52:59Z")

</div>

I have a fcsv file with 1000 points in it. If I load this into Slicer it takes about couple minutes to import. If I rename it to as csv, strip the first two rows, and load it (as a table), its instantaneous.

I assume the difference is in the creation of the mrml node(s) for fiducials?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 24, 2020, 11:15pm UTC](https://discourse.slicer.org/t/fcsv-read-performance-is-low-but-not-when-importing-as-csv/10421/2 "2020-02-24T23:15:04Z")

</div>

> [@muratmaga](#):
>
> I assume the difference is in the creation of the mrml node(s) for fiducials?

Yes, that is probably it. We probably just need to put the scene into batch mode when reading the fcsv. Can you post the example files so we can easily replicate?

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [February 25, 2020, 12:30am UTC](https://discourse.slicer.org/t/fcsv-read-performance-is-low-but-not-when-importing-as-csv/10421/3 "2020-02-25T00:30:20Z")

</div>

Sure. here they are:  
csv: [https://app.box.com/s/qn8lczlzm81penm0qpgzm9opdp98d7na](https://app.box.com/s/qn8lczlzm81penm0qpgzm9opdp98d7na)  
fcsv: [https://app.box.com/s/x2x6f1m3bxg7mmtpr6te8vfqudpaub90](https://app.box.com/s/x2x6f1m3bxg7mmtpr6te8vfqudpaub90)

also it would be good to move text size and glyph size settings into fcsv file as well (there is already visibility setting, but as far as I can tell it doesn’t honored when fcsv is read into the scene).

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 28, 2020, 8:42pm UTC](https://discourse.slicer.org/t/fcsv-read-performance-is-low-but-not-when-importing-as-csv/10421/4 "2020-02-28T20:42:35Z")

</div>

I was able to reproduce the slow fiducial loading with a Slicer preview from a few weeks ago, but with the current Preview version the fcsv file loads instantly. I suspect the overhaul @lassoan did to change to LPS coordinates also fixed this slowdown. Let us know how it works for you @muratmaga.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [February 28, 2020, 9:31pm UTC](https://discourse.slicer.org/t/fcsv-read-performance-is-low-but-not-when-importing-as-csv/10421/5 "2020-02-28T21:31:26Z")

</div>

Yep, it is working fast for me too with the latest update. I thought you did something 🙂

Thanks @lassoan.
