Comments (3)
Hi @hjunqq
I know, but vtk_fortran_dataarray_encoder is the encoder for ASCII files that are not tailored for a large amount of data.
If you have to write large files I strongly suggest using a raw binary encoder.
Kind regards
from vtkfortran.
I modify the code like that:
size_n = size(x,dim=1)
l = DI1P+1
sp = 0
code = repeat(' ',l*size_n)
do n = 1,size_n
code(sp+1:sp+l) = str(n=x(n))
sp = sp + l
enddo
it has better performance, but doesnot as elegant as the code you wrote.
#35
from vtkfortran.
Hi @hjunqq
sorry for my delay. Yes, there is room for improvement, but for the ASCII encoder, I was focused on clearness, conciseness, and maintainability rather than performance just because for larger files the raw-binary encoder is the right option. Anyway, you patch is fine for me.
Kind regards
from vtkfortran.
Related Issues (20)
- Makefile is broken HOT 7
- Add doctests
- problems with makefile HOT 5
- Error when linking LIB_VTK_IO HOT 5
- OOP Refactoring HOT 26
- Compile error HOT 11
- VTM support is currently lost HOT 1
- Error when compiling HOT 3
- binary UnstructuredGrid is incomplete under ifort HOT 3
- VTM hierarchy HOT 1
- penf library files missing inside "/src/third_party/BeFoR64" HOT 17
- No rule to build 'src/third_party/BeFoR64/src/lib/befor64.F90' HOT 5
- dependencies Lib_Base64.f90 and IR_precision.f90 HOT 3
- xml_writer%write_geo does not write the points section if nc>np HOT 14
- General polyhedrons handling HOT 20
- pvtu (unstructured) HOT 4
- Tested with nag compiler
- No CMakeLists.txt in src/lib; wrong directory name for tests
- Missing documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vtkfortran.