should I use what language to deal many http/mysql request? : I have `1400000000` data and it saved in some txt files, like this:

    key1 key2

I use key1/key2 request data by http/mysql, and check body.

Now I have wrote using python, but it slow. And I learn a little Go language.

The part codes:


    import Queue
    import threading

    class CheckThread(threading.Thread):
        def __init__(self, queue, src_folder, dest_folder='check_result'):
            super(CheckThread, self).__init__()
            self._queue = queue
            self.daemon = True

        def run(self):
            while True:
                file_name = self._queue.get()
                try:
                    self._prepare_check(file_name)
                except:
                    self._queue.task_done()
                    continue
                self._queue.task_done()


    def Check(src_folder, workers=12, dest_folder='check_result'):
        queue = Queue.Queue()

        for (dirpath, dirnames, filelist) in os.walk(src_folder):
            for name in filelist:
                if name[0] == '.':
                    continue
                queue.put(os.path.join(dirpath, name))

        for worker in xrange(workers):
            worker = str(worker + 1)
            t = CheckThread(queue, src_folder, dest_folder)
            t.start()

        queue.join()


    def main(folder, worker=12, out='check_result'):
        try:
            Check(folder, worker, out)
        except:
            return 1
        return 0

Every thread deal one file from queue.

How I should optimization it? thanks a lot.