Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Bug reports ➜ memory leak?

memory leak?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2 

Posted by Jcl   (42 posts)  Bio
Date Reply #15 on Sat 19 Sep 2015 12:11 PM (UTC)
Message
Donecce said:

I am curious if you are using the Mush script function "ImportXML" anywhere.


No, I never called this function.
Top

Posted by Jcl   (42 posts)  Bio
Date Reply #16 on Sat 19 Sep 2015 12:17 PM (UTC)

Amended on Sat 19 Sep 2015 12:47 PM (UTC) by Jcl

Message
I call these functions a lot.

1. wait.regexp(regexp)

2. wait.regexp(regexp, timeout)

3. wait.time(seconds)

4. string.find and string.match

5. Execute

The plugin's structure is roughly the way.

wait.make(function()
    repeat
        do_before_maze()

        walk(fight)

        do_after_maze()
    until stop
end)

function walk(f)
    while f() == 0 do
        go_next_room()
    end
end

function fight()
    repeat
        Perform skills and wait for kill over.
    until kill_over
    if all_over then
        return 1
    else
        return 0
    end
end

function go_next_room()
    Do look and wait for the exits message.
    Decide the next door to enter.
end
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #17 on Sat 19 Sep 2015 08:39 PM (UTC)
Message
Jcl said:

The output from server contained both Chinese and ASCII characters. See the release notes for 4.93, is this problem related to UTF-8 ?

...

No, I didn't check the UTF-8(Unicode) option of the output configuration.


So you are using a Chinese character set, but not UTF-8? How does that even work? Aren't there more than 256 Chinese characters (glyphs)?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Jcl   (42 posts)  Bio
Date Reply #18 on Sun 20 Sep 2015 04:29 AM (UTC)
Message
Nick Gammon said:

So you are using a Chinese character set, but not UTF-8? How does that even work? Aren't there more than 256 Chinese characters (glyphs)?


The charset is GBK. There is 21,886 Chinese characters. It's mixed with single byte characters (ASCII) and double byte characters (Chinese).
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #19 on Sun 20 Sep 2015 06:02 AM (UTC)
Message
Nonstandard character set, expect nonstandard results. I can see where, once upon a time, the minor bandwidth savings GBK offers over a proper UTF-8 character set would have been beneficial but on today's internet I just don't see an appreciable advantage. Most likely, the 'leak' you're experiencing is an accumulation of the 2nd bits used for characters that aren't represented in ascii that aren't presented to the ascii text handler in a proper format to be recognized as releasable bits come time to recycle memory allocations. Doesn't happen with an actual utf-8 or ascii charset because they follow proper ascii or utf-8 encoding rules rather than trying to be both and neither at the same time.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


72,892 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.