Custom Query (121 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (58 - 60 of 121)

Ticket Resolution Summary Owner Reporter
#70 worksforme really slow on large input ... xi lal.george@…

Reported by lal.george@…, 7 years ago.

Description

yaml.load appears to be really (really) slow on large input. My string is

--- seqno : 1 outof : 1 result :

  • <1.6Mbyte string>

Both the input and output are fairly simple. Why does it take a long time to parse?

Lal

#71 wontfix libyaml does not build with MinGW xi clive.crous@…

Reported by clive.crous@…, 7 years ago.

Description

I'm unable to build libyaml under MinGW due to assumtions within the source code that "WIN32" means Visual Studio. I use gcc, even in windows.

Simple patch to yaml.h#260 fixes this =>

  • yaml.h

     
    2626 
    2727/** The public API declaration. */ 
    2828 
    29 #ifdef WIN32 
     29#if defined(WIN32) && !defined(__GNUC__) 
    3030#   if defined(YAML_DECLARE_STATIC) 
    3131#       define  YAML_DECLARE(type)  type 
    3232#   elif defined(YAML_DECLARE_EXPORT) 

Thanks, Clive

#73 invalid numpy arrays ... xi lal.george@…

Reported by lal.george@…, 7 years ago.

Description

What is the best way to transfer very large numpy arrays using PyYAML?

Ideally I would like to do something like:

m = ; # a very large numpy array

y = "---\nx : '%s'\n" % (m.dumps())

z = yaml.load(y)

However, the yaml.load returns an exception:

'utf8 codec can't decode byte #x80: unexpected code byte in "<string>", position 9.

Since I have quoted the string, yaml should not be diving into it - correct?

Thanks.

Best,

Lal

Note: See TracQuery for help on using queries.