Giter Site home page Giter Site logo

Comments (4)

dillonkearns avatar dillonkearns commented on August 18, 2024

Hey Mario, thanks for filing the issue! That's really interesting that it takes that long for you, it consistently takes 15 seconds or so for me:

$ time ./bin/graphqelm https://api.github.com/graphql --header 'authorization: Bearer <token>' --base Github --includeDeprecated --output examples/src
./bin/graphqelm https://api.github.com/graphql --header  --base Github
43.87s user 15.89s system 497% cpu 12.000 total

Not that that changes anything about your suggestion, just kind of interesting. Adding in a little message to let people know that it's working sounds like a great idea! I'll add that in as part of the next release. Thanks for the suggestion!

from elm-graphql.

martimatix avatar martimatix commented on August 18, 2024

That's interesting. Here are my stats:

$ time graphqelm https://api.github.com/graphql --header 'Authorization: Bearer <token>' --base Github
       67.03 real       171.58 user        11.57 sys

Running this on a 2017 Macbook Pro with an i5 processor.

from elm-graphql.

martimatix avatar martimatix commented on August 18, 2024

OK, this is really weird. My 2014 Macbook Pro, it's much shorter and the machine doesn't lock up.

graphqelm https://api.github.com/graphql --header  --base Github  35.42s user 10.77s system 228% cpu 20.218 total

Probably something weird going on with my installation on my newer machine.

from elm-graphql.

dillonkearns avatar dillonkearns commented on August 18, 2024

That is interesting, I wonder why that could be. Let me know if you have any ideas, I definitely want to keep the code generation really snappy.

I added some log statements, in npm version 2.1.3 the output now looks like this:

Fetching GraphQL schema...
Generating files...
Success!

I'll close this for now, but let me know if you have any suggestions on how to change the output. Thanks again for the suggestion!

from elm-graphql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.