[Gambas-user] User Digest, Vol 4, Issue 39

Federico Allegretti allegfede at gmail.com
Thu Jan 18 13:42:25 CET 2018


don't think ... usually i do not install the developing branch of software
... have to be quite shure system is stable :-(

shall i do it by compiling by myself?

On 18 January 2018 at 12:12, <user-request at lists.gambas-basic.org> wrote:

> Send User mailing list submissions to
>         user at lists.gambas-basic.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.gambas-basic.org/listinfo/user
> or, via email, send a message with subject or body 'help' to
>         user-request at lists.gambas-basic.org
>
> You can reach the person managing the list at
>         user-owner at lists.gambas-basic.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of User digest..."
>
>
> Today's Topics:
>
>    1. Re: Can JSON.Decode be faster? (Beno?t Minisini)
>    2. Re: Can JSON.Decode be faster? (Beno?t Minisini)
>    3. Re: gb.media: warning: unsupported datatype: GValueArray
>       (Beno?t Minisini)
>    4. Re: gb.media: warning: unsupported datatype: GValueArray (Vuott)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 18 Jan 2018 01:05:34 +0100
> From: Beno?t Minisini <g4mba5 at gmail.com>
> To: Gambas Mailing List <user at lists.gambas-basic.org>
> Subject: Re: [Gambas-user] Can JSON.Decode be faster?
> Message-ID: <25f50335-1c0d-e99c-6d1c-4603ea999cb9 at gmail.com>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Le 17/01/2018 ? 21:27, Patrik Karlsson a ?crit?:
> > In this little project: https://github.com/trixon/gambas-idg (contains a
> > json file, requires Gambas=3.10.90 c1e4b89 (master))
> >
> > I'm decoding a json string around 1MB and it takes 30 seconds in Gambas.
> > CPU:? ? ? ?Quad core Intel Core i7-6700HQ (-MT-MCP-) cache: 6144 KB
> >  ? ? ? ? ? ?clock speeds: max: 3500 MHz 1: 800 MHz 2: 800 MHz 3: 800 MHz
> > 4: 800 MHz 5: 800 MHz 6: 800 MHz
> >  ? ? ? ? ? ?7: 800 MHz 8: 800 MHz
> >
> > When doing it in java with Google Gson it takes virtually no time at all.
> >
> > I intend to use this in an image viewer that consumes base64 encoded
> > photos wrapped in a json among its exif data.
> > Could this be done faster in Gambas?
>
> The JSON.Decode() is not really optimized, so I think it can be made
> faster.
>
> By the way, it's not a good idea to use JSON for big binary data.
>
> >
> > I guess I could split the base64 from the json but it would be nice to
> > have it atomic.
> >
> > Sidenote 1:
> > Should not Now() for 01/17/2018 21:47:57.73 be 01/17/2018 21:47:57.730
> > with a zero at the end?
>
> This is the standard Gambas format, read the Format$() documentation
> about dates.
>
> > 01/17/2018 21:47:28.687 load json
> > 01/17/2018 21:47:28.687 decode json
> > 01/17/2018 21:47:57.699 getBase64
> > 01/17/2018 21:47:57.699 loadImage
> > 01/17/2018 21:47:57.73 done
> >
> > Sidenote 2:
> > How do I get rid of that margin around the ImageView?
> > It's very visible in fullscreen mode but it's there in normal mode too.
> > When I shrink the window size so that the scroll bars are about to
> > appear, the margin gets away, but then the image is too small to watch.
>
> It comes from the ZoomFit() method. Maybe this method should takes the
> margin as an optional argument?
>
> >
> > /Patrik
> >
> >
> >
> > --------------------------------------------------
> >
> > This is the Gambas Mailing List
> > https://lists.gambas-basic.org/listinfo/user
> >
> > Hosted by https://www.hostsharing.net
> >
>
>
> --
> Beno?t Minisini
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 18 Jan 2018 02:05:11 +0100
> From: Beno?t Minisini <g4mba5 at gmail.com>
> To: Gambas Mailing List <user at lists.gambas-basic.org>
> Subject: Re: [Gambas-user] Can JSON.Decode be faster?
> Message-ID: <2da2bbe9-be83-27d5-5947-8f033e647597 at gmail.com>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Le 18/01/2018 ? 01:05, Beno?t Minisini a ?crit?:
> > Le 17/01/2018 ? 21:27, Patrik Karlsson a ?crit?:
> >> In this little project: https://github.com/trixon/gambas-idg (contains
> >> a json file, requires Gambas=3.10.90 c1e4b89 (master))
> >>
> >> I'm decoding a json string around 1MB and it takes 30 seconds in Gambas.
> >> CPU:? ? ? ?Quad core Intel Core i7-6700HQ (-MT-MCP-) cache: 6144 KB
> >> ?? ? ? ? ? ?clock speeds: max: 3500 MHz 1: 800 MHz 2: 800 MHz 3: 800
> >> MHz 4: 800 MHz 5: 800 MHz 6: 800 MHz
> >> ?? ? ? ? ? ?7: 800 MHz 8: 800 MHz
> >>
> >> When doing it in java with Google Gson it takes virtually no time at
> all.
> >>
> >> I intend to use this in an image viewer that consumes base64 encoded
> >> photos wrapped in a json among its exif data.
> >> Could this be done faster in Gambas?
> >
>
> You can test the commit
> https://gitlab.com/gambas/gambas/commit/4ff9f7ddef726e3957c3
> 0bf31b794b894b88d914
> to check the speed up of the JSON.Decode() routine.
>
> ...and the default null margin for ImageView.ZoomFit() too.
>
> Regards,
>
> --
> Beno?t Minisini
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 18 Jan 2018 02:14:56 +0100
> From: Beno?t Minisini <g4mba5 at gmail.com>
> To: Gambas Mailing List <user at lists.gambas-basic.org>
> Subject: Re: [Gambas-user] gb.media: warning: unsupported datatype:
>         GValueArray
> Message-ID: <0d752d3e-37d8-5bcb-8236-81cba53a57b1 at gmail.com>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Le 18/01/2018 ? 00:42, Beno?t Minisini a ?crit?:
> >
> > I think I get it too. I hadn't in the past...
> >
> > I will look at it. This message is from the internal function that
> > transforms a glib datatype returned by GStreamer into a Gambas datatype.
> > Of course this function cannot handle everything, and sometimes
> > GStreamer returns a glib datatype that was not used before.
> >
>
> Sorry: do you use a 3.10 version or the development version?
>
> Because normally it has already been fixed in it.
>
> --
> Beno?t Minisini
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 18 Jan 2018 01:39:53 +0000 (UTC)
> From: Vuott <vuott at yahoo.it>
> To: Gambas Mailing List <user at lists.gambas-basic.org>
> Subject: Re: [Gambas-user] gb.media: warning: unsupported datatype:
>         GValueArray
> Message-ID: <201489494.84696.1516239593332 at mail.yahoo.com>
> Content-Type: text/plain; charset=UTF-8
>
> It has already been fixed.
> I remember I raised the problem; then it was solved by Beno?t.
>
> Regards
> vuott
>
>
>
>
> --------------------------------------------
> Gio 18/1/18, Beno?t Minisini <g4mba5 at gmail.com> ha scritto:
>
>  Oggetto: Re: [Gambas-user] gb.media: warning: unsupported datatype:
> GValueArray
>  A: "Gambas Mailing List" <user at lists.gambas-basic.org>
>  Data: Gioved? 18 gennaio 2018, 02:14
>
>  Le 18/01/2018 ? 00:42, Beno?t
>  Minisini a ?crit?:
>  >
>  > I think I get it too. I hadn't in the
>  past...
>  >
>  > I will
>  look at it. This message is from the internal function that
>
>  > transforms a glib datatype returned by
>  GStreamer into a Gambas datatype.
>  > Of
>  course this function cannot handle everything, and sometimes
>
>  > GStreamer returns a glib datatype that
>  was not used before.
>  >
>
>  Sorry: do you use a 3.10
>  version or the development version?
>
>  Because normally it has already been fixed in
>  it.
>
>  --
>  Beno?t
>  Minisini
>
>  --------------------------------------------------
>
>  This is the Gambas Mailing
>  List
>  https://lists.gambas-basic.org/listinfo/user
>
>  Hosted by https://www.hostsharing.net
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> User mailing list
> User at lists.gambas-basic.org
> http://lists.gambas-basic.org/listinfo/user
>
> Mailinglist hosted by https://www.hostsharing.net
>
>
> ------------------------------
>
> End of User Digest, Vol 4, Issue 39
> ***********************************
>



-- 
Open TV Architecture project: http://sourceforge.net/projects/otva/

Messagenet VOIP: 5338759

YouTube Channel: v1p3r's lab

VIMEO HD videos: http://www.vimeo.com/user1912745/videos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180118/1564aaf8/attachment.html>


More information about the User mailing list