Comments (8)
Thanks for the report, @jeanetteclark. We should definitely invest some time getting this working again. Your idea about line 190 being a culprit seems pretty reasonable after a quick glance. It does seem to do work that is identical on every invocation.
It would probably help me to get an MRE for this so I can poke around. I'll try that now and get back to you. Does this happen with attribute lists of any size or just larger ones? I'd also like to get at the bottom of why this is happening now and not before.
from eml.
@amoeba it actually happens for me even if I don't pass any arguments and it just spins up an empty table. Typically, it never loads, or it takes several minutes, which leads me to believe I'm probably missing something. I got to that particular line by running profvis
on get_unit_id
from eml.
Typically, it never loads, or it takes several minutes
Very interesting. It is slow to load but I get it to load in about 8s on both my local machine and datateam. That's still too slow for my test but I'm curious why it's so much slower for you. Can you dump a devtools::session_info()
in here?
from eml.
After cleaning up my session a bit I am also down to 8s or so to load a blank table, and somewhat reasonable (but still a little slow) times for tables with moderate number of attributes
from eml.
@jeanetteclark sent me a devtools::session_info()
out of band of this conversation though it didn't give me any pointers.
I was able to reproduce the performance @jeanetteclark was seeing and saw the same culprit. I opted to use an Environment to cache the units::valid_udunits_prefixes
call and test that the startup time and editing slowness went away.
See #333. @jeanetteclark would you mind giving that a whirl just to confirm it works equally well for you?
from eml.
Cool @amoeba! I thought about caching, but wouldn't have thought to use a global var for it. I just tested and it works much better. I can have a look at those tests and see if I can fix them this afternoon
from eml.
Sounds good, thanks @jeanetteclark.
from eml.
Closing since this change was merged and we're cutting a release.
from eml.
Related Issues (20)
- set_attributes forces all numeric fields to have storageType = "float" HOT 7
- Taxonomic Coverage and bibtex HOT 1
- Species name epithet is not handled the way specified in the EML schema HOT 2
- Error with molePerKilogram in unit list returned by get_unitList() HOT 3
- dataset and datatable entries from README example fail HOT 2
- Revisit how users can find a learn to use the `eml$*` constructors HOT 2
- Add a minimum version requirement on taxadb and wait to release the next version of this package HOT 1
- Web scraping | sapply function | Error in readBin(5L, "raw", 65536L) : Failure when receiving data from the peer HOT 1
- Creating EML elements with XML attributes HOT 2
- Duplicate person when using `write_eml()` HOT 2
- Set attributes for properties, e.g. `<title xml:lang="eng">` HOT 3
- Function to convert DataCite metadata to EML: good fit for this package? HOT 7
- `<![CDATA[` not always recognized HOT 1
- [Units] Discussion about current unit list HOT 5
- `set_coverage()`: Express common names in `commonName` in `taxonomicCoverage` HOT 10
- `set_responsibleParty()`: allow to create organization parties HOT 1
- namespace conflict introduced when importing/exporting EML generated under older schema
- EML::eml_validate conflicts with knb.ecoinformatics.org parser & appears to introduce invalid xml into valid files HOT 1
- EML seems to have trouble with foreign key constraints HOT 2
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 eml.